#@layout()
#define main()
<h1>采购发票单(NC应付单)&nbsp;&nbsp;
</h1>


<form action="/cgfpd" method="get">
<label for="djbh">单据编号：</label>
	<input class="text" type="" name="djbh">
	<label for="gysdm">供应商代码：</label>
	<input class="text" type="" name="gysdm">
	<label for="gysmc">供应商名称：</label>
	<input class="text" type="" name="gysmc"><br>
	<label for="startdate">时间范围：</label>
	<input class="text" type="" name="startdate" id="start-calendar">~
	<input class="text" type="" name="enddate" id="end-calendar">
	<input class="submit" type="submit" name="submit" value="搜索">
</form>

<script type="text/javascript" src="/assets/dist/zane-calendar.min.js"></script>
<script type="text/javascript">
var startdate = "#(startdate)";
var enddate = "#(enddate)";
#[[
	zaneDate({
		elem:'#start-calendar',
		format:'yyyy-MM-dd HH:mm:ss',
		begintime:startdate,
		showtime:true,
		zindex:500
	})
	zaneDate({
		elem:'#end-calendar',
		format:'yyyy-MM-dd HH:mm:ss',
		begintime:enddate,
		showtime:true,
		zindex:500
	})
]]#
$(function(){
	$(":checkbox[name='DJBH']").click(function(){
		console.log(11122334);
	});
	$(":checkbox[name='ALL']").click(function(){
		console.log(222333);
	});
});
</script>
<div class="table_box">
	<table class="list">
		<tbody>
			<tr>
				<th width="3%" style="text-align:center;vertical-align: middle;"><input style="zoom: 200%" type='checkbox' value='1' name='ALL' /></th>
				<th width="4%" style="text-align:center;">单据编号</th>
				<th width="8%" style="text-align:center;">日期</th>
				<th width="7%" style="text-align:center;">供应商代码</th>
				<th width="15%" style="text-align:center;">供应商名称</th>
				<th width="5%" style="text-align:center;">采购数量</th>
				<th width="8%" style="text-align:center;">发票金额</th>
				<th width="8%" style="text-align:center;">含税金额</th>
				<th width="8%" style="text-align:center;">去税金额</th>
				<th width="8%" style="text-align:center;">税额</th>
				<th width="12%" style="text-align:center;">备注</th>
				<th width="5%" style="text-align:center;">NC</th>
				<th width="9%" style="text-align:center;">操作</th>
			</tr>
			
			#for(x : cgfpdPage.getList())
			<tr>
				<td style="text-align:center;vertical-align: middle;"><input style="zoom: 200%" type='checkbox' value='#(x.DJBH)' name='DJBH' /></td>
				<td style="text-align:left;">#(x.DJBH)</td>
				<td style="text-align:left;">#(x.RQ)</td>
				<td style="text-align:left;">#(x.GHSDM)</td>
				<td style="text-align:left;">#(x.GHSMC)</td>
				<td style="text-align:right;">#(x.SL)</td>
				<td style="text-align:right;">#(x.JE)</td>
				<td style="text-align:right;">#(x.JE)</td>
				<td style="text-align:right;">#(x.QSJE)</td>
				<td style="text-align:right;">#(x.SE)</td>
				<td style="text-align:left;">#(x.BZ)</td>
				<td style="text-align:center;">#(x.issend)</td>
				<td style="text-align:left;">
					&nbsp;&nbsp;<a href="/cgfpd/syncupdate/#(x.DJBH)">同步更新</a>
				</td>
			</tr>
			#end
		</tbody>
	</table>
	#@paginate(cgfpdPage.pageNumber, cgfpdPage.totalPage, "/cgfpd/")
</div>
#end